package com.ymtms.arrivalofgoods.dao;

import com.ymtms.arrivalofgoods.pojo.ViewEmpStateSc;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

public interface ViewEmpStateScMapper {
    int insert(ViewEmpStateSc record);

    int insertSelective(ViewEmpStateSc record);
@Select("select *from view_emp_state_sc where eiid=#{eiid}")
    ViewEmpStateSc selectStatusByEid(Integer eiid);

    @Update("update view_emp_state_sc set state='在公司' where eiid=#{eiid}")
    void updateStatusToCompany(Integer eiid);
    @Update("update view_emp_state_sc set state='省内1' where eiid=#{eiid}")
    void updateStatusToProvince(Integer eiid);
}